var axios = require("axios")
module.exports = {
    post: function(request) {
        axios({
            method: 'post',
            url: request.url ? "/api" + request.url : "/",
            data: request.data ? request.data : {},
        }).then((res) => {
            console.log({
                "地址": request.url ? request.url : "/",
                "入参": request.data ? request.data : {},
                "回参": res,
                "全部": request,
            });
            if (request.success) {
                request.success(res);
            }
        });
    }
}